<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p v-bind:title="title1">
            鼠标移上去，停顿几秒看看
        </p>
        <!-- 可以缩写 -->
        <p :title="title2">
            鼠标移上去，停顿几秒看看
        </p>
        <!-- null、false、undefined disabled属性就不会渲染出来 -->
        <button :disabled="btnDisabled">按钮</button>
    </div>
    <script src="../assets/vue2.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data() {
                return {
                    title1: '我是一个标题1',
                    title2: '我是一个标题2',
                    btnDisabled: true
                }
            },
        })
    </script>
</body>

</html>